package de.jmda.mview;

import javax.lang.model.element.TypeElement;

import de.jmda.mproc.ProcessingUtilities;
import de.jmda.mview.ElementFactory.CPubOwned;

public class GetEnclosingTypeElement
{
	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		TypeElement enclosedTypeElement = ElementFactory.getTypeElement(CPubOwned.class);
		TypeElement enclosingTypeElement = ProcessingUtilities.getEnclosingTypeElement(enclosedTypeElement);
		System.out.println("enclosed: " + enclosedTypeElement.toString() + "\nenclosing: " + enclosingTypeElement);
	}
}
